package com.deamon.file.api;


import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Priority;

//@RestController
@Controller
public class Index {

    @RequestMapping("/index")
    public String index(Model model) {

        return "index";
    }


    @CrossOrigin
    @RequestMapping("/upload")
    public String upload() {
        return "upload";
    }
}
